!!! 5
%html(ng-app='Detexify')
  %head
    %meta{:charset => "utf-8"}
    %meta{:content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"}
    %meta{name: "viewport", content: "width=device-width"}
    %meta{:content => current_page.data.description, :name => "description"}
    %meta{:content => current_page.data.keywords, :name => "keywords"}
    %title= current_page.data.title || "Detexify"
    = stylesheet_link_tag "style"
    = javascript_include_tag "shared"
    = javascript_include_tag current_page.data.js if current_page.data.js
  %body{class: current_page.data.body_classes }
    .container
      = yield
    :javascript
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

      ga('create', 'UA-8668142-3', 'auto');
      ga('send', 'pageview');
    :javascript
      (function() {
          var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];

          s.type = 'text/javascript';
          s.async = true;
          s.src = 'http://api.flattr.com/js/0.5.0/load.js?mode=auto';

          t.parentNode.insertBefore(s, t);
      })();
